package cn.avalon.feign;

import cn.avalon.domain.Store;
import cn.avalon.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @description:
 * @author: Avalon
 * @date: 2022年09月19日 ： 22:27
 * @version: ver1.0
 * @email 709785494@qq.com
 */
@FeignClient(name = "store-server", fallbackFactory = StoreServiceFallbackFactory.class)
@RequestMapping("/store")
public interface StoreService {

    @PostMapping("/add")
    AjaxResult add(@RequestBody Store store);
}
